<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="ch09.*,org.apache.ibatis.session.*" %>
<%
	try{
		SqlSession conn = MyBatisFactory.getSession();
		String re = conn.selectOne("test.db");
		out.println("DB 연결 성공 <br>");
		out.println(re);
		conn.close();		
	}catch(org.apache.ibatis.exceptions.PersistenceException e){
		out.println("DB 연결 실패 <br>");
		out.println(e.getMessage());
	}
%>